package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.MessageEntity;
import com.net.tkc.pro.impl.message;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class messageService implements message {
    @Resource
    message messageimpl;

    @Override
    public int addMessage(MessageEntity message) {
        return messageimpl.addMessage(message);
    }

    @Override
    public int updateMessageById(String Time, int Status, int id) {
        return messageimpl.updateMessageById(Time,Status,id);
    }

    @Override
    public int delMessage(int id) {
        return messageimpl.delMessage(id);
    }

    @Override
    public List<MessageEntity> getMessageList(String Note, String EmailAddress, int Start, int Page) {
        return messageimpl.getMessageList(Note,EmailAddress,Start,Page);
    }

    @Override
    public int getMessageCount() {
        return messageimpl.getMessageCount();
    }
}
